import request from '@/utils/request'

// 查询学生竞赛列表
export function listStudentcompetition(query) {
  return request({
    url: '/studentcompetition/studentcompetition/list',
    method: 'get',
    params: query
  })
}

// 查询学生竞赛详细
export function getStudentcompetition(id) {
  return request({
    url: '/studentcompetition/studentcompetition/' + id,
    method: 'get'
  })
}

// 新增学生竞赛
export function addStudentcompetition(data) {
  return request({
    url: '/studentcompetition/studentcompetition',
    method: 'post',
    data: data
  })
}

// 修改学生竞赛
export function updateStudentcompetition(data) {
  return request({
    url: '/studentcompetition/studentcompetition',
    method: 'put',
    data: data
  })
}

// 删除学生竞赛
export function delStudentcompetition(id) {
  return request({
    url: '/studentcompetition/studentcompetition/' + id,
    method: 'delete'
  })
}
